package com.bsj.sipgateway.common.def;

import java.io.Serializable;
import java.util.Map;

/**
 * @Description TODO
 * @Date 2022/7/20 16:07
 **/
public class ViPublish implements Serializable {
    private static final long serialVersionUID = -8699421083465453622L;
    /**
     * 车辆id
     */
    private long vehicleId;
    /**
     * 车组id
     */
    private int groupId;
    /**
     * 设备时间
     */
    private long devTime;
    /**
     * 平台接收时间
     */
    private long recvTime;
    /**
     * vi更新时间
     */
    private long viUpdateTime;
    /**
     * 行停时间
     */
    private long stopRunTime;
    /**
     * 速度
     */
    private float speed;
    /**
     * 里程 (单位:米)
     */
    private float mileage;
    /**
     * 方向
     */
    private short direct;
    /**
     * 高程
     */
    private short high;
    /**
     * Acc状态
     */
    private byte isAcc;
    /**
     * 是否定位
     */
    private byte isPos;
    /**
     * 经度
     */
    private double lon;
    /**
     * 纬度
     */
    private double lat;
    /**
     * 扩展数据
     */
    private Map<String, Object> extend;

    public ViPublish() {
    }

    public ViPublish(long vehicleId, int groupId, int devTime, int recvTime, int viUpdateTime, int stopRunTime, float speed, float mileage, short direct, short high, byte isAcc, byte isPos, double lon, double lat, Map<String, Object> extend) {
        this.vehicleId = vehicleId;
        this.groupId = groupId;
        this.devTime = devTime;
        this.recvTime = recvTime;
        this.viUpdateTime = viUpdateTime;
        this.stopRunTime = stopRunTime;
        this.speed = speed;
        this.mileage = mileage;
        this.direct = direct;
        this.high = high;
        this.isAcc = isAcc;
        this.isPos = isPos;
        this.lon = lon;
        this.lat = lat;
        this.extend = extend;
    }

    public long getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(long vehicleId) {
        this.vehicleId = vehicleId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public long getDevTime() {
        return devTime;
    }

    public void setDevTime(long devTime) {
        this.devTime = devTime;
    }

    public long getRecvTime() {
        return recvTime;
    }

    public void setRecvTime(long recvTime) {
        this.recvTime = recvTime;
    }

    public long getViUpdateTime() {
        return viUpdateTime;
    }

    public void setViUpdateTime(long viUpdateTime) {
        this.viUpdateTime = viUpdateTime;
    }

    public long getStopRunTime() {
        return stopRunTime;
    }

    public void setStopRunTime(long stopRunTime) {
        this.stopRunTime = stopRunTime;
    }

    public float getSpeed() {
        return speed;
    }

    public void setSpeed(float speed) {
        this.speed = speed;
    }

    public float getMileage() {
        return mileage;
    }

    public void setMileage(float mileage) {
        this.mileage = mileage;
    }

    public short getDirect() {
        return direct;
    }

    public void setDirect(short direct) {
        this.direct = direct;
    }

    public short getHigh() {
        return high;
    }

    public void setHigh(short high) {
        this.high = high;
    }

    public byte getIsAcc() {
        return isAcc;
    }

    public void setIsAcc(byte isAcc) {
        this.isAcc = isAcc;
    }

    public byte getIsPos() {
        return isPos;
    }

    public void setIsPos(byte isPos) {
        this.isPos = isPos;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public Map<String, Object> getExtend() {
        return extend;
    }

    public void setExtend(Map<String, Object> extend) {
        this.extend = extend;
    }

    @Override
    public String toString() {
        return "ViPublish{" +
                "vehicleId=" + vehicleId +
                ", groupId=" + groupId +
                ", devTime=" + devTime +
                ", recvTime=" + recvTime +
                ", viUpdateTime=" + viUpdateTime +
                ", stopRunTime=" + stopRunTime +
                ", speed=" + speed +
                ", mileage=" + mileage +
                ", direct=" + direct +
                ", high=" + high +
                ", isAcc=" + isAcc +
                ", isPos=" + isPos +
                ", lon=" + lon +
                ", lat=" + lat +
                ", extend=" + extend +
                '}';
    }
}
